package com.hb.core.pojo.project.evaluation.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hb.core.pojo.project.evaluation.entity.EvaluationCommitteeBid;
import com.hb.core.pojo.project.file.dto.BidFileInfoDTO;
import com.hb.core.pojo.project.section.dto.BidSectionTenderDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * describe:
 * 评委会标段信息
 * @author zhongdl
 * @date 2022/02/15
 */
@Getter
@Setter
public class EvaluationCommitteeBidDTO extends EvaluationCommitteeBid {

    @ApiModelProperty(value = "项目名称")
    private String projectName;

    @ApiModelProperty(value = "项目编号")
    private String projectCode;

    @ApiModelProperty(value = "招标文件id")
    private Long fileId;

  /**
     * 标段编号
     */
    @ApiModelProperty(value = "标段编号")
    private String sectionCode;

    /**
     * 标段名称
     */
    @ApiModelProperty(value = "标段名称")
    private String sectionName;

    @ApiModelProperty(value = "评标开始时间")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime evaluationStartTime;

    @ApiModelProperty(value = "评标结束时间")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime  evaluationEndTime;

    @ApiModelProperty(value = "是否为组长  1：是   0：否")
    private Integer chairmanFlag;

    /**
     *
     * @Description:
      标段状态: 待评标  评标中  评标结束
       组长点击结束评标 endFlag == 1
       未到评标时间为待评标
       在评标开始时间和结束时间之间为 评标中
     **/
    private String evaluationStatusName;

    @ApiModelProperty(value = "评标状态 1，未开始；2，评标中；3，已结束")
    private Integer evaluationStatus;

    /**
     *
     * @Description: 是否为投票结束

     **/
    private Integer voteEndFlag;

    @ApiModelProperty(value = "投标文件列表")
    private List<BidSectionTenderDTO> tenderFileList;

    @ApiModelProperty(value = "招标文件信息")
    private BidFileInfoDTO bidFileInfoDTO;

    @ApiModelProperty(value = "简易流程还是标准流程（1，简易，2，标准）")
    private Integer simpleOrStandard;

}
